package com.lanou.service.impl;

import com.lanou.mapper.AdminRoleMapper;
import com.lanou.service.AdminRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by dllo on 18/3/14.
 */
@Service
public class AdminRoleServiceImpl implements AdminRoleService {
    @Resource
    private AdminRoleMapper adminRoleMapper;
    @Override
    public void deleteRoleByAdminId(int admin_id) {
        adminRoleMapper.deleteRoleByAdminId(admin_id);
    }

    @Override
    public void insertAdminRole(int admin_id, int role_id) {
        adminRoleMapper.insertAdminRole(admin_id, role_id);
    }

    @Override
    public void insertRoleByAdminId(int admin_id, int role_id) {
        adminRoleMapper.insertRoleByAdminId(admin_id,role_id);
    }
}
